import {defineStore} from "pinia";

/**
 * 租户store
 */
export const tenantStore = defineStore('tenant', {
    state: () => ({
        tenantEditOpen: false,
        tenantInsertOpen: false,
        tenantId: ""
    }),
    actions: {
        setTenantEditOpen(value: boolean) {
            this.tenantEditOpen = value
        },
        setTenantInsertOpen(value: boolean) {
            this.tenantInsertOpen = value
        },
        setTenantId(value: string) {
            this.tenantId = value
        }
    }, getters: {}
})